CC = gcc


EXEC 			= arcade_monsters
LDFLAGS  		=
CFLAGS 			= -W -Wall -pedantic -ansi -ggdb
LIBS = -lncurses
SRC = ennemis.c ensembleEnnemis.c jeu.c main.c ncurse.c personnage.c terrain.c
OBJ= $(SRC:.c=.o)


all : $(EXEC)

arcade_monsters:$(OBJ)
	@$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
	
%.o: %.c
	@$(CC) -o $@ -c $< $(CFLAGS) $(LIBS)


